package com.cloud.api.domain.stats;

import com.cloud.api.utils.ExcelUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@Accessors(chain = true)
@ExcelUtils.ExcelSheet(watermark = @ExcelUtils.Watermark(type = 0)
)
@Schema(name = "OfflineVehicleVo", description = "离线车辆数据统计")
public class OfflineVehicleVo implements Serializable {

    @Schema(description = "车辆vin")
    @ExcelUtils.ExcelExport(name = "table.field.vin",columnWidth = 21)
    private String vin;

    @Schema(description = "车牌号")
    @ExcelUtils.ExcelExport(name = "table.field.licenseNumber",columnWidth = 20)
    private String licenseNumber;

    @Schema(description = "最后一次上报时间")
    @ExcelUtils.ExcelExport(name = "table.field.lastOpTime",columnWidth = 20)
    private LocalDateTime opTime;

    @Schema(description = "纬度")
    private BigDecimal lat;

    @Schema(description = "经度")
    private BigDecimal lng;

    @Schema(description = "离线天数")
    @ExcelUtils.ExcelExport(name = "table.field.offlineDays",columnWidth = 20)
    private Long offlineDays;

    @Schema(description = "车辆类型")
    private String vehicleType;

}
